package com.ruoyi.web.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


/**
 * 签到记录对象 sign_in_record
 *
 * @author jiwei
 * @date 2024-05-12
 */
@Data
@TableName("sign_record")
public class SignInRecord {
private static final long serialVersionUID = 1L;

    /** ID */
            @Excel(name = "ID")
        @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /** 用户ID */
            @Excel(name = "用户ID")
    private Long userId;

    /** 社区ID */
            @Excel(name = "社区ID")
    private Long communityId;

    /** 连续签到天数 */
            @Excel(name = "连续签到天数")
    private Long duration;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间" , width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(fill = FieldFill.INSERT)
    private Date createAt;

    /**
     * 创建者
     */
    @Excel(name = "创建者")
    @TableField(fill = FieldFill.INSERT)
    private Long createBy;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间" , width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateAt;
    /**
     * 更新者
     */
    @Excel(name = "更新者")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateBy;
}
